Drawing.transformBounds Method

Applies an affine transform to a bounds and returns the coordinates of the top-left, top-right, bottom-left, and bottom-right corners as arrays containing the X and Y coordinates, respectively.
 
 
Static This method is static.

Parameters

matrix

Type: Array
ElementType: Number
An array that represents an affine transform containing elements m11, m12, m13, m21, m22, m23, respectively.
bounds

Type: Rect
An object that represents a bounding box containing properties x, y, width, and height.

Return Value


Type: Array
ElementType: Array
An array that contains the transformed points for the top-left, top-right, bottom-left, and bottom-right corners of the bounds. Each element is an array containing the X and Y coordinates, respectively.